package com.aw.baselib.util;

/**
 * @author : hzw
 * @date : 2020/4/14
 */
public class SetUtil {

    public static void saveAllowWifiCache(boolean params) {
        SPUtils.put("AllowWifi", params);
    }

    /**
     * 是否允许wifi下缓存
     * @return
     */
    public static boolean isAllowWifiCache() {
        return (boolean) SPUtils.get("AllowWifi", true);
    }

    public static void saveAllowNotification(boolean params) {
        SPUtils.put("notifications", params);
    }

    /**
     * 是否允许通知提醒
     * @return
     */
    public static boolean isAllowNotification() {
        return (boolean) SPUtils.get("notifications", true);
    }

}
